package com.wh.influxdb.common.core.convertor;


import com.wh.influxdb.common.utils.HexUtil;

/**
 * @Author: xu
 * @Date: 2025/1/16
 * @Description:
 **/
public class BytesHexConvertor implements Convertor<byte[], String> {

    @Override
    public byte[] toJavaValue(String hexData) {
        return HexUtil.decodeHexStr(hexData);
    }

    @Override
    public String toSaveValue(byte[] data) {
        return HexUtil.encodeHexStr(data);
    }
}
